package com.advantage.accounts.transfer;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
import com.advantage.R;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 * User: hirsche
 * Date: 13/04/14
 * Time: 20:35
 * To change this template use File | Settings | File Templates.
 */
public class MoneyTransferCompletedActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.money_transfer_completed);
        TextView fromValue = (TextView) findViewById(R.id.from_account_value);
        fromValue.setText((String) getIntent().getExtras().get(MoneyTransferFragment.FROM_ACCOUNT));
        TextView toValue = (TextView) findViewById(R.id.to_account_value);
        toValue.setText((String) getIntent().getExtras().get(MoneyTransferFragment.TO_ACCOUNT));
        TextView amountValue = (TextView) findViewById(R.id.amount_value);
        amountValue.setText((String) getIntent().getExtras().get(MoneyTransferFragment.AMOUNT));
        TextView dateValue = (TextView) findViewById(R.id.date_value);
        dateValue.setText((String) getIntent().getExtras().get(MoneyTransferFragment.DATE_OF_TRANSACTION));
        TextView referenceIdValue = (TextView) findViewById(R.id.reference_id_value);
        referenceIdValue.setText("#"+UUID.randomUUID().toString());

    }

}


